{*include file="template/admin_head.htm"*}
<script src="/public/js/jquery/jquery.colorpicker.js" type="text/javascript"></script>
<table id="containtable" cellspacing="0" cellpadding="0" class="{*$cf_controller*}">
    <tr>
        <td width="1979" valign="top" bgcolor="#FFFFFF">
            <div class="wrapper pr_8">
			{*if $cf_action=='add' || $cf_action=='edit'*}
			<script type="text/javascript">
					var my_box_sfun = function(){			//固定函数,提交callback
					
								alert('sfun');
								return true;
								
								//$("#button").hide();
							}
					var my_box_cfun=function(){			//固定函数,取消callback,或为空
								alert('close');	
								return true;
							}
				
			
			 $(function(){
				move_effect(".tapbt","active",0,'.tab-page',1);
				
				
				load_province('cate',"{*$row['goods_cate']*}","{*$row['goods_sub_cate']*}");
				$("#cate1").change(function(){                                   //更改分类
                	change_province('cate',$(this).val());
         		});
				
				call_uploader('#goods_image0_button','#goods_image0','goods',{'show':'#goods_image0_show'});
				{*if $row['goods_image']['0']*}
				$("#goods_image0_show").append(show_photo_div("#goods_image0_button","#goods_image0","{*$row['goods_image']['0']*}"));
				{*/if*}
					
				call_uploader('#goods_image1_button','#goods_image1','goods',{'show':'#goods_image1_show'});
				{*if $row['goods_image']['1']*}
				$("#goods_image1_show").append(show_photo_div("#goods_image1_button","#goods_image1","{*$row['goods_image']['1']*}"));
				{*/if*}
	
				call_uploader('#goods_image2_button','#goods_image2','goods',{'show':'#goods_image2_show'});
				{*if $row['goods_image']['2']*}
				$("#goods_image2_show").append(show_photo_div("#goods_image2_button","#goods_image2","{*$row['goods_image']['2']*}"));
				{*/if*}
				call_uploader('#goods_image3_button','#goods_image3','goods',{'show':'#goods_image3_show'});
				{*if $row['goods_image']['3']*}
				$("#goods_image3_show").append(show_photo_div("#goods_image3_button","#goods_image3","{*$row['goods_image']['3']*}"));
				{*/if*}
				call_uploader('#goods_image4_button','#goods_image4','goods',{'show':'#goods_image4_show'});
				{*if $row['goods_image']['4']*}
				$("#goods_image4_show").append(show_photo_div("#goods_image4_button","#goods_image4","{*$row['goods_image']['4']*}"));
				{*/if*}
				
				call_uploader('#goods_hot_photo_button','#goods_hot_photo','nofix',{'show':'#goods_hot_photo_show'});
				{*if $row['goods_hot_photo']*}
				$("#goods_hot_photo_show").append(show_photo_div("#goods_hot_photo_button","#goods_hot_photo","{*$row['goods_hot_photo']*}","admin",false));
				{*/if*}
				
				
				
				$("#act_form").submit(function(){
					if($("#goods_title").val() == ''){
						my_alert('请输入商品标题','错误提示',"$('#goods_title').focus()");
						return false;										
					}	
					if($("#goods_code").val() == ''){
						my_alert('请输入商品编码','错误提示',"$('#goods_code').focus()");
						return false;										
					}	
					if($("#cate1").val() == ''){
						my_alert('请选择商品分类','错误提示',"$('#cate1').focus()");
						return false;										
					}
					if($("#cate2").val() == ''){
						my_alert('请选择商品子分类','错误提示',"$('#cate2').focus()");
						return false;										
					}
					
					if($("#goods_image0").val() == ''){
						my_alert('请上传商品图片','错误提示',"$('#goods_image0_show').focus()");
						return false;										
					}						
					if($("#goods_content").val() == ''){
						my_alert('请填写商品描述','错误提示',"$('#goods_content').focus()");
						return false;										
					}					
					if($("#goods_price").val() == ''){
						my_alert('请输入现价','错误提示',"$('#goods_price').focus()");
						return false;										
					}	
					if($("#goods_original_price").val() == ''){
						my_alert('请输入原价','错误提示',"$('#goods_original_price').focus()");
						return false;										
					}
		
					
				});
				
				var goods_index_value = "{*$row.goods_index_value*}";	
				if(goods_index_value){
					$("input[name='goods_index_photo']").each(function(){	
						if(goods_index_value == $(this).val()){					
							$(this).attr("checked", true);
						}		
					});
				}	
				
				
				
				$("#add_item").click(function(){
					 $("#item_list").append($("#copy_info").html())
				});
				 $(".del_item").live("click",function(){
					 $(this).parent().parent().remove();
					  //get_all_fee_total();
				 });
				 
				/*$(".color").colorpicker({
					fillcolor:true,
					success:function(o,color){
						$(o).css({background:color,color:color});
						$(o).val(color);
					}
				});
				*/
				
				call_editor('#goods_content','nomal');
			
				
				//my_box($("#province_info").html(),'选择区域',500,300);
				$(".edit_province").click(function(){
					var id = $(this).attr("id");
					var areas = $("#areas"+id).val();
					var areas_arr = areas.split(',');
								
					$.each(areas_arr,function(k,value){
						
						$("#province_"+value).attr("checked", true);													
					});
					my_box($("#province_info").html(),'选择区域',500,300);		
            	}); 
				
			
				
				
				

		    });
			</script>
			
			<div class="content_panel_title">
				<div class="contentpanelleft"></div>
				<div class="contentpanelcenter">
					<span class="contentpanelcenter_font">新增/修改运费模板</span>
					<span><a class="edit at" href="{*$cf_self_page*}?dpt={*$cf_dpt*}">运费模板管理</a></span>
				</div>
				<div class="contentpanelrihgt"></div>
            </div>
          <!--  /*省份选择的*/-->
            <div id="province_info">
       
            <table width="500" height="300">
            
                 <script type="text/javascript">
			$(function(){
					$(".Group").live("click",function(){
					var areas = $(this).val();					
					var areas_arr = areas.split(',');									
					$.each(areas_arr,function(k,value){
						alert($("#province_"+value).prop('checked'));
									
						$("#province_"+value).attr("checked",'true');													
					});				  
				});	
			});
			</script>
              <tr>
                <td width="16%">
                    <input id="Group_1" class="Group" type="checkbox" value="90000,100000,110000,120000,140000">
                    <label for="Group_1" style="font-weight:bold;">华东</label>
                </td>
                <td width="12%">
                    <input id="province_90000" class="J_Province" type="checkbox" value="90000">
                    <label for="province_90000">上海</label>
                </td>
                <td width="10%">
                    <input id="province_100000" class="J_Province" type="checkbox" value="100000">
                    <label for="province_100000">江苏</label>
                </td>
                 <td width="12%">
                    <input id="province_110000" class="J_Province" type="checkbox" value="110000">
                    <label for="province_110000">浙江</label>
                </td>
                 <td width="10%">
                    <input id="province_120000" class="J_Province" type="checkbox" value="120000">
                    <label for="province_120000">安徽</label>
                </td>
                 <td width="11%">
                    <input id="province_140000" class="J_Province" type="checkbox" value="140000">
                    <label for="province_140000">江西</label>
                </td>
                <td width="29%">&nbsp;</td>
              </tr>
                <tr>
                <td width="16%">
                    <input id="Group_2" class="Group" type="checkbox" value="10000,20000,40000,150000,30000,140000">
                    <label for="Group_2" style="font-weight:bold;">华北</label>
                </td>
                <td width="12%">
                    <input id="province_10000" class="J_Province" type="checkbox" value="10000">
                    <label for="province_10000">北京</label>
                </td>
                <td width="10%">
                    <input id="province_20000" class="J_Province" type="checkbox" value="20000">
                    <label for="province_20000">天津</label>
                </td>
                 <td width="12%">
                    <input id="province_40000" class="J_Province" type="checkbox" value="40000">
                    <label for="province_40000">山西</label>
                </td>
                 <td width="10%">
                    <input id="province_150000" class="J_Province" type="checkbox" value="150000">
                    <label for="province_150000">山东</label>
                </td>
                 <td width="11%">
                    <input id="province_30000" class="J_Province" type="checkbox" value="30000">
                    <label for="province_30000">河北</label>
                </td>
                 <td width="29%">
                    <input id="province_140000" class="J_Province" type="checkbox" value="140000">
                    <label for="province_140000">内蒙古</label>
                </td>
              </tr>
               <tr>
                <td width="16%">
                    <input id="Group_3" class="Group" type="checkbox" value="180000,170000,160000">
                    <label for="Group_3" style="font-weight:bold;">华中</label>
                </td>
                <td width="12%">
                    <input id="province_180000" class="J_Province" type="checkbox" value="180000">
                    <label for="province_180000">湖南</label>
                </td>
                <td width="10%">
                    <input id="province_170000" class="J_Province" type="checkbox" value="170000">
                    <label for="province_170000">湖北</label>
                </td>
                 <td width="12%">
                    <input id="province_160000" class="J_Province" type="checkbox" value="160000">
                    <label for="province_160000">河南</label>
                </td>
                <td width="10%">&nbsp;</td>
                <td width="11%">&nbsp;</td>
                <td width="29%">&nbsp;</td>
              </tr>
              
               <tr>
                <td width="16%">
                    <input id="Group_4" class="Group" type="checkbox" value="190000,200000,130000,210000">
                    <label for="Group_4" style="font-weight:bold;">华南</label>
                </td>
                <td width="12%">
                    <input id="province_190000" class="J_Province" type="checkbox" value="190000">
                    <label for="province_190000">广东</label>
                </td>
                <td width="10%">
                    <input id="province_200000" class="J_Province" type="checkbox" value="200000">
                    <label for="province_200000">广西</label>
                </td>
                 <td width="12%">
                    <input id="province_130000" class="J_Province" type="checkbox" value="130000">
                    <label for="province_130000">福建</label>
                </td>
                 <td width="10%">
                    <input id="province_210000" class="J_Province" type="checkbox" value="210000">
                    <label for="province_210000">海南</label>
                </td>
                <td width="11%">&nbsp;</td>
                <td width="29%">&nbsp;</td>
              </tr>
               <tr>
                <td width="16%">
                    <input id="Group_5" class="Group" type="checkbox" value="60000,70000,80000">
                    <label for="Group_5" style="font-weight:bold;">东北</label>
                </td>
                <td width="12%">
                    <input id="province_60000" class="J_Province" type="checkbox" value="60000">
                    <label for="province_60000">辽宁</label>
                </td>
                <td width="10%">
                    <input id="province_70000" class="J_Province" type="checkbox" value="70000">
                    <label for="province_70000">吉林</label>
                </td>
                 <td width="12%">
                    <input id="province_80000" class="J_Province" type="checkbox" value="80000">
                    <label for="province_80000">黑龙江</label>
                </td>
                <td width="10%">&nbsp;</td>
                <td width="11%">&nbsp;</td>
                <td width="29%">&nbsp;</td>
              </tr>
              <tr>
                <td width="16%">
                    <input id="Group_6" class="Group" type="checkbox" value="270000,310000,280000,300000,290000">
                    <label for="Group_6" style="font-weight:bold;">西北</label>
                </td>
                <td width="12%">
                    <input id="province_270000" class="J_Province" type="checkbox" value="270000">
                    <label for="province_270000">陕西</label>
                </td>
                <td width="10%">
                    <input id="province_310000" class="J_Province" type="checkbox" value="310000">
                    <label for="province_310000">新疆</label>
                </td>
                 <td width="12%">
                    <input id="province_280000" class="J_Province" type="checkbox" value="280000">
                    <label for="province_280000">甘肃</label>
                </td>
                 <td width="10%">
                    <input id="province_300000" class="J_Province" type="checkbox" value="300000">
                    <label for="province_300000">宁夏</label>
                </td>
                 <td width="11%">
                    <input id="province_290000" class="J_Province" type="checkbox" value="290000">
                    <label for="province_290000">青海</label>
                </td>
                <td width="29%">&nbsp;</td>
              </tr>
              
               <tr>
                <td width="16%">
                    <input id="Group_7" class="Group" type="checkbox" value="220000,250000,240000,300000,290000">
                    <label for="Group_7" style="font-weight:bold;">西南</label>
                </td>
                <td width="12%">
                    <input id="province_220000" class="J_Province" type="checkbox" value="220000">
                    <label for="province_220000">重庆</label>
                </td>
                <td width="10%">
                    <input id="province_250000" class="J_Province" type="checkbox" value="250000">
                    <label for="province_250000">云南</label>
                </td>
                 <td width="12%">
                    <input id="province_240000" class="J_Province" type="checkbox" value="240000">
                    <label for="province_240000">贵州</label>
                </td>
                 <td width="10%">
                    <input id="province_260000" class="J_Province" type="checkbox" value="260000">
                    <label for="province_260000">西藏</label>
                </td>
                 <td width="11%">
                    <input id="province_230000" class="J_Province" type="checkbox" value="230000">
                    <label for="province_230000">四川</label>
                </td>
                <td width="29%">&nbsp;</td>
              </tr>
              <tr>
                <td width="16%">
                    <input id="Group_8" class="Group" type="checkbox" value="320000,70000,80000">
                    <label for="Group_8" style="font-weight:bold;">港澳台</label>
                </td>
                <td width="12%">
                    <input id="province_320000" class="J_Province" type="checkbox" value="320000">
                    <label for="province_320000">香港</label>
                </td>
                <td width="10%">
                    <input id="province_330000" class="J_Province" type="checkbox" value="330000">
                    <label for="province_330000">澳门</label>
                </td>
                 <td width="12%">
                    <input id="province_340000" class="J_Province" type="checkbox" value="340000">
                    <label for="province_340000">台湾</label>
                </td>
                <td width="10%">&nbsp;</td>
                <td width="11%">&nbsp;</td>
                <td width="29%">&nbsp;</td>
              </tr>  
              
            </table>

            
            </div>
			
			<div class="content_table_center_style">
                    <div class="p8">

                        <form name="act_form" id="act_form" method="post" action="{*$cf_self_page*}">
                            <input name="id" id="id" type="hidden" value="{*$row['fee_id']*}" />
                            <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
                            <input name="act" id="act" type="hidden" value="{*$cf_action*}" />
				

				<div class="tab-page" style="display: block;">	
				<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tbl tbl_nbr">
				<tbody>
					
				    <tr>
					<td width="12%" align="right">模板名称:</td>
					<td colspan="3" align="left"><input type="text" size="60" id="fee_title" name="fee_title" value="{*$row['fee_title']*}"  /></td>
				    </tr>
					<tr>
					<td width="12%" align="right">是否包邮:</td>
					<td colspan="3" align="left">{*html_radios name=fee_is_free options=$cf_info_var_common['fee_is_free'] checked=$row['fee_is_free']|default:'0'*}</td>
				    </tr>
                    <tr>
					<td width="12%" align="right">计费方式:</td>
					<td colspan="3" align="left">{*html_radios name=fee_type options=$cf_info_var_common['fee_type'] checked=$row['fee_type']|default:'0'*}</td>
				    </tr>
					<tr>
				    	<td align="right">运费设置:</td>
				    	<td colspan="3" align="left">                         
                          <table width="626" height="110" class="tbl tbl_nbr" style="width:600px;">
                            <tr style="background-color:#f3feed"  >
                              <td colspan="6">
                                默认运费：<input type="text" aria-label="默认运费件数" maxlength="6" autocomplete="off" class="input-text " data-field="start" value="1" name="express_start" size="6"> 件内，
                                <input type="text" aria-label="默认运费价格" maxlength="6" autocomplete="off" class="input-text " value="" name="express_postage" data-field="postage" size="6"> 元，
                                每增加 <input type="text" aria-label="每加件" maxlength="6" autocomplete="off" class="input-text " value="1" data-field="plus" name="express_plus" size="6"> 件，
                                增加运费<input type="text" aria-label="加件运费" maxlength="6" autocomplete="off" class="input-text " value=" " data-field="postageplus" name="express_postageplus" size="6">元
                               </td>
                            </tr>
                            
                            <tr class="thd">
                              <td width="270" >运送到</td>
                              <td width="65">首件(件)</td>
                              <td width="62">首费(元)</td>
                              <td width="70">续件(件)</td>
                              <td width="64">续费(元)</td>
                              <td width="41">操作</td>
                            </tr>
                            <tr>
                              <td>
                              <input value="90000,100000,110000" id="areas1" name="areas1" >
                              <a title="编辑运送区域"  href="javascript:void(0)" style=" float:right" class="edit_province" id="1" >编辑</a>
                              <p id="areas_info1">未添加地区</p>
                              </td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                            </tr>
                            <tr>
                              <td colspan="6">                              
                               <a href="javascript:void(0)"  >为指定地区城市设置运费</a>
                               </td>
                            </tr>
                            
                        </table>
                        
                        
                        </td>
			    	</tr>
					 <tr>
					 	<td align="right">品牌:</td>
					 	<td colspan="3" align="left">{*html_options name=goods_brand options=$brand selected=$row['goods_brand']|default:'0'*}</td>
				 	</tr>
					 <tr>
					<td align="right">商品简介:</td>
					<td colspan="3" align="left"><textarea name="goods_introduction" id="goods_introduction" cols="100" rows="3">{*$row.goods_introduction*}</textarea></td>
					</tr>
				    
				    <tr>
				      <td height="69" align="right">商品图片:</td>
				      <td colspan="3" align="left">
				        <table width="80%" border="0">
				          <tr>
				            <td width="20%" align="center"><span id='goods_image0_show'><img style="cursor:pointer" id="goods_image0_button" src="/public/images/admin/upload.jpg"  /></span>
			                <input type="hidden" name="goods_image0" id="goods_image0" value="{*$row['goods_image']['0']*}" /></td>
				            <td width="20%" align="center"><span id='goods_image1_show'><img style="cursor:pointer" id="goods_image1_button" src="/public/images/admin/upload.jpg"  /></span>
			                <input type="hidden" name="goods_image1" id="goods_image1" value="{*$row['goods_image']['1']*}" /></td>
				            <td width="20%" align="center"><span id='goods_image2_show'><img style="cursor:pointer" id="goods_image2_button" src="/public/images/admin/upload.jpg"  /></span>
			                <input type="hidden" name="goods_image2" id="goods_image2" value="{*$row['goods_image']['2']*}" /></td>
				            <td width="20%" align="center"><span id='goods_image3_show'><img style="cursor:pointer" id="goods_image3_button" src="/public/images/admin/upload.jpg"  /></span>
			                <input type="hidden" name="goods_image3" id="goods_image3" value="{*$row['goods_image']['3']*}" /></td>
				            <td width="20%" align="center"><span id='goods_image4_show'><img style="cursor:pointer" id="goods_image4_button" src="/public/images/admin/upload.jpg"  /></span>
			                <input type="hidden" name="goods_image4" id="goods_image4" value="{*$row['goods_image']['4']*}" /></td>
			              </tr>
				          
			            </table></td>
			        </tr>
				    <tr>
				      <td colspan="4" class="stitle">价格信息</td>
			        </tr>
				    <tr>
					<td align="right">现价:</td>
					<td align="left"><input type="text" size="20" id="goods_price" name="goods_price" value="{*$row['goods_price']*}"  /></td>
					<td align="right">原价:</td>
					<td align="left"><input type="text" size="20" id="goods_original_price" name="goods_original_price" value="{*$row['goods_original_price']*}"  /></td>
				    </tr>
                    <tr>
                    	<td colspan="4" class="stitle">其它信息</td>
                    	</tr>
                    <tr>
                        <td align="right">状态:</td>
                        <td align="left">{*html_radios name=goods_status options=$cf_info_var_common['goods_status'] checked=$row['goods_status']|default:'1'*}</td>
                        <td align="right"></td>
                        <td align="left"></td>
                    </tr>
                    

				</tbody>
			    </table>
				</div>
				
				<div class="tab-page" style="display:block" >			
                <table class="tbl tbl_nbr" width="100%" border="0">
					<tr>
					<td colspan="4" class="stitle">基本属性</td>
				    </tr>
					
					{*for $x=1 to 4*}
					{*$key='option'|cat:$x*}
					<tr>
						<td align="right">属性{*$x*}:</td>
						<td colspan="3"><input name="{*$key*}" type="text" size="10" value="{*$row['options'][$x]['title']|default:''*}" />
						&nbsp;&nbsp;&nbsp;数值:
						{*for $y=0 to 9*}
						<input name="{*$key*}_value[]" type="text" size="8" value="{*$row['options'][$x]['option'][$y]|default:''*}" />&nbsp;
						{*/for*}</td>
					</tr>
					{*/for*}
					

					<!--<tr class="option">
                    	<td align="right">颜色:</td>
						<td colspan="3">
						{*foreach $row['color'] as $v*}
						<input name="color_code[]" class="color" type="text" size="8" value="{*$v*}" />&nbsp;
						{*/foreach*}
	
						{*for $x=$v@total to 10*}
						<input name="color_code[]" class="color" type="text" size="8" />&nbsp;
						{*/for*}
						</td>
                    	</tr>
                    <tr>-->
					
					
					<tr>
					<td colspan="4" class="stitle">套餐搭配 <span class="sybq"><em>提示:</em><font color="#999999">此可设定不同的套餐与价格</font></span></td>
				    </tr>
					<tr>
					<td align="right">套餐搭配:</td>
						<td colspan="3"><div class="item_part">
                    <ul id="item_list">
                        <li>
                          <p>
                          <span class="span1" style="width:300px">内容说明</span>
                          <span class="span1">价格</span>
                          <span>操作</span>
                          </p></li>
                        {*foreach $row['package'] as $item*}
                        <li>
						<span class="span1" style="width:300px"><input name="item_title[]" type="text"  size="50" value="{*$item.title*}" /></span>
                        <span class="span1"><input name="item_price[]" type="text" value="{*$item.price*}" size="8" /></span>
						<span><a href="javascript:void(0)" class="del_item"><img src="public/images/admin/close.png" /></a></span>
						</li>
                        {*/foreach*}
						<li>
						<span class="span1" style="width:300px"><input name="item_title[]" type="text"  size="50" value="" /></span>
                        <span class="span1"><input name="item_price[]" type="text" value="" size="8" /></span>
						<span><a href="javascript:void(0)" class="del_item"><img src="public/images/admin/close.png" /></a></span>
						</li>
						<li>
						<span class="span1" style="width:300px"><input name="item_title[]" type="text"  size="50" value="" /></span>
                        <span class="span1"><input name="item_price[]" type="text" value="" size="8" /></span>
						<span><a href="javascript:void(0)" class="del_item"><img src="public/images/admin/close.png" /></a></span>
						</li>
                    </ul>
                    <div class="item_all_total"><b><a href="javascript:void(0)" id="add_item"><img src="public/images/admin/add.png" /></a></b></span>
                    </div>
                </div></td>
					</tr>

				</table>
				<div style="display:none"><ul id="copy_info">
				<li>
					<span class="span1" style="width:300px"><input name="item_title[]" type="text" size="50"  /></span>
                    <span class="span1"><input name="item_price[]" type="text" size="8" /></span>
					<span><a href="javascript:void(0)" class="del_item"><img src="public/images/admin/close.png" /></a></span>
				</li>
				</ul></div></div>
				<div class="tab-page" style="display: block;">			
                <table class="tbl tbl_nbr" width="100%" border="0">
					<tr>
					<td colspan="4" class="stitle">推荐设置 <span class="sybq"><em>提示:</em><font color="#999999">要设置推荐,请先上传推荐图</font></span></td>
				    </tr>
					<tr>
						<td align="right">推荐图:</td>
						<td colspan="3" ><span id='goods_hot_photo_show'><img style="cursor:pointer" id="goods_hot_photo_button" src="/public/images/admin/upload.jpg" /></span>
							<input type="hidden" name="goods_hot_photo" id="goods_hot_photo" value="{*$row['goods_hot_photo']*}" /></td>
						
					</tr>
					<tr>
						<td width="12%" align="right">是否推荐:</td>
						<td width="38%">{*html_radios name=goods_ishot options=$cf_info_var_common['yesno'] checked=$row['goods_ishot']|default:'0'*}</td>
						<td width="12%" align="right">是否特价:</td>
						<td width="38%">{*html_radios name=goods_isspecial options=$cf_info_var_common['yesno'] checked=$row['goods_isspecial']|default:'0'*}</td>
					</tr>
				</table>
				</div>
				
				
				<div class="pt_8" align="center"><input type="submit" name="Submit" value="提 交" class="myinput" />
                 &nbsp;&nbsp;<input type="button" name="back" value="返 回" onclick="window.history.back()" class="myinput" /></div>
                     </form>
                    </div>
                </div>
				
				<div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
			{*elseif $cf_action=='detail'*}
			<div class="content_panel_title">
				<div class="contentpanelleft"></div>
				<div class="contentpanelcenter">
					<span class="contentpanelcenter_font">商品详情</span>
					<span><a class="edit at" href="{*$cf_self_page*}?dpt={*$cf_dpt*}">商品管理</a></span></div>
				<div class="contentpanelrihgt"></div>
            </div>
			
			<div class="content_table_center_style">
                    <div class="p8">
						<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl tbl_nbr">
							    <tbody>
							    </tbody>
							    <tbody>
								<tr>
								    <td colspan="4" class="stitle">商品信息&nbsp;&nbsp;<a style="" href="/admin/goods.htm?dpt={*$dpt*}&act=edit&id={*$row['goods_id']*}"  class="blue">修改信息</a></td>
								</tr>
								<tr>
								    <td width="12%" align="right">商品标题:</td>
								    <td width="38%" align="left">{*$row['goods_title']*}</td>
								    <td width="12%"align="right">商品分类:</td>
								    <td width="38%" align="left">{*$row['cate']*}</td>
								</tr>
								<tr>
									<td align="right">商品简介:</td>
									<td width="38%" align="left">{*$row['goods_introduction']*}</td>
									<td width="12%"align="right">商品编码:</td>
								    <td width="38%" align="left">{*$row['goods_code']*}</td>
									</tr>
								<tr>
								    <td height="69" align="right">商品图片:</td>
								    <td colspan="3" align="left"><img src="{*$row['goods_index_photo']*}" height="80" border="0" />
								    </td>
								</tr>
								
								<tr>
									<td align="right">附加图片:</td>
									<td colspan="3" align="left">{*$row['img']*}</td>
								</tr>
								<tr>
								    <td align="right">商品描述:</td>
								    <td colspan="3" align="left">{*$row['goods_content']*}</td>
								</tr>
								<tr>
								    <td colspan="4" class="stitle">价格信息</td>
								</tr>
								<tr>
								    <td align="right">现价:</td>
								    <td align="left">{*$row['goods_price']*}</td>
								    <td align="right">原价:</td>
								    <td align="left">{*$row['goods_original_price']*}</td>
								</tr>
								<tr>
									<td colspan="4" class="stitle">基本属性</td>
									</tr>
									
									{*foreach $row['options'] as $k=>$v*}
									{*$key='option'|cat:$k*}
									<tr>
										<td align="right">属性{*$k*}:</td>
										<td colspan="3"><input name="{*$key*}" type="text" size="10" value="{*$v['title']*}" disabled="disabled" />
										&nbsp;&nbsp;&nbsp;数值:
										{*foreach $v['option'] as $kk=>$vv*}
										<input name="{*$key*}_value[]" type="text" size="8" value="{*$vv*}" disabled="disabled" />&nbsp;
										{*/foreach*}</td>
									</tr>
									{*/foreach*}
								<tr>
								    <td colspan="4" class="stitle">套餐搭配</td>
								</tr>
								<tr>
								    <td align="right">套餐搭配:</td>
								    <td colspan="3" align="left">
									<div class="item_part">
                    				<ul id="item_list">
                       				 <li><p>
									  <span class="span1" style="width:60%;">内容说明</span>
									  <span class="span1">价格</span>
									  </p></li>
									  {*foreach $row['package'] as $item*}
									  <li><span class="span1" style="width:60%;text-align:left;">{*$item['title']*}</span><span class="span1">{*$item['price']*}</span></li>
									  {*/foreach*}
									  
									</ul>
									</div>
									
									</td>
								    </tr>
								
								<tr>
								    <td colspan="4" class="stitle">推荐与特价</td>
								</tr>
								<tr>
								    <td align="right">是否推荐:</td>
								    <td align="left">{*$cf_info_var_common['yesno'][$row['goods_ishot']]*}</td>
								    <td align="right">是否特价:</td>
								    <td align="left">{*$cf_info_var_common['yesno'][$row['goods_isspecial']]*}</td>
								</tr>
								<tr>
								    <td colspan="4" class="stitle">其它信息</td>
								</tr>
								<tr>
								    <td align="right">状态:</td>
								    <td align="left">{*$cf_info_var_common['goods_status'][$row['goods_status']]*}</td>
								    <td align="right">创建时间</td>
								    <td align="left">{*$row['goods_create_time']*}</td>
								</tr>
								<tr>
								    <td align="right">修改时间:</td>
								    <td align="left">{*$row['goods_edit_time']*}</td>
								    <td align="right">创建者:</td>
								    <td align="left">{*$row['goods_create_user']*}</td>
								</tr>
							    <tr>
								    <td align="right">销量:</td>
								    <td  colspan="3"  align="left">{*$row['goods_sales']*}</td>
								</tr>
							    </tbody>
						</table>

                        
                    </div>
                </div>
				
			<div class="content_main_bottom">
				<div class="content_main_bottom_left"></div>
				<div class="content_main_bottom_right"></div>
		    </div>
			
			{*else*}
			<script type="text/javascript">
			
			$(function(){
				load_province('cate',"{*$cate1*}","{*$cate2*}");
				$("#cate1").change(function(){                                   //更改分类
					change_province('cate',$(this).val());
				});
				
				$("#checkall").toggle(
                    function(){
                        select_all("idlist[]",true);
                    },
                    function(){
                        select_all("idlist[]",false);
                    }
                );
				
				$("#list_form").submit(function(){
					if(!count_select("idlist[]")){
						my_alert('请选择记录','操作提示');
						return false;
					};
					if($("#alltype").val()==''){
						my_alert('请选择操作方式','Error',"$('#alltype').focus()");
						return false;
					};
					if(confirm('确定进行操作?')==false){
						return false;
					}
					return true;
                });
				
				
			})
			</script>
			
			<div class="pannel">
				<div class="pl"></div>
				<div class="pr"></div>
				<div class="pc">
					<form action="" method="get" id="search_form" name="search_form">
					<input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
					<input name="self" id="dpt" type="hidden" value="{*$self*}" />
					<div class="pt">
						运费模板标题:
						  <input type="text" size="20" id="skey" name="skey" class="tet" value="{*$skey*}" />	
						创建时间:
					       <input name="skey2" class="Wdate" type="text" id="act_start" value="{*$skey2*}" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'act_end\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="12" maxlength="30" />
					到<input name="skey3" class="Wdate" type="text" id="act_end" value="{*$skey3*}" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'act_start\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="12" maxlength="30" />
					 &nbsp;			   
					  <input type="image" src="public/images/admin/icon_search_btn.gif" />
					</div>
					</form>
				</div>
		    </div>
			
			<div class="content_panel_title">
				<div class="contentpanelleft"></div>
				<div class="contentpanelcenter">
					<span class="contentpanelcenter_font">运费模板管理</span>
					<span><a class="edit at" href="{*$cf_self_path*}-act_add.htm?dpt={*$cf_dpt*}">添加运费模板</a></span>&nbsp;
				</div>
				<div class="contentpanelrihgt"></div>
		    </div>
			
			<div class="content_table_center_style">
			<div class="p8">
			    <div class="bq clearfix">
		    <b><a href="{*$cf_self_path*}-act_index.htm?dpt={*$cf_dpt*}" class="{*if $self==''*}active{*/if*}">所 有 </a></b></div>
			    <form name="list_form" id="list_form" method="post" action="{*$cf_self_page*}">
				<input name="act" type="hidden" value="all" />
				<input name="dpt" type="hidden" value="{*$cf_dpt*}" />	                
                <table width="100%" class="tbl tbl_nbr">
				    <thead>
					<tr class="thd">
					    <td width="9%" align="center" class="thr">ID</td>
					    <td width="23%" align="center" class="thr">运费模板标题</td>
					    <td width="49%" align="center" class="thr">运费模板配置</td>
					    <td width="9%" align="center" class="thr">最后更新时间</td>
					    <td colspan="2" align="center" class="thr">操作</td>
					</tr>
				    </thead>
				    <tbody>
					{*foreach $data_ary as $item*}
					<tr onmouseout="this.style.backgroundColor='#ffF'" onmouseover="this.style.backgroundColor='#ffC'">
					    <td align="center"><input type="checkbox" name="idlist[]" value="{*$item['goods_id']*}" /></td>
					    <td align="left"><a href="{*$cf_self_path*}-act_detail_id_{*$item['goods_id']*}.htm?dpt={*$cf_dpt*}" title="查看詳情" class="edit" >{*$item['goods_title']*}</a></td>
					    <td align="center">
                        <table width="100%" class="tbl tbl_nbr" >
					      <tr class="thd">
					        <td width="45%" align="center">运动到</td>
					        <td width="15%" align="center">首重(个)</td>
					        <td width="14%" align="center">运费(元)</td>
					        <td width="12%" align="center">续件(个)</td>
					        <td width="14%" align="center">运费(元)</td>
				          </tr>
					      <tr>
					        <td>山东,天津,山西,河北,内蒙古,北京 山东,天津,山西,河北,内蒙古,北京 山东,天津,山西,河北,内蒙古,北京 </td>
					        <td>&nbsp;</td>
					        <td>&nbsp;</td>
					        <td>&nbsp;</td>
					        <td>&nbsp;</td>
				          </tr>
					      <tr>
					        <td>&nbsp;</td>
					        <td>&nbsp;</td>
					        <td>&nbsp;</td>
					        <td>&nbsp;</td>
					        <td>&nbsp;</td>
				          </tr>
			          </table></td>
					    <td align="center">{*$item['goods_create_time']*}</td>
					    <td width="4%" align="center"><a href="{*$cf_self_path*}-act_edit_id_{*$item['goods_id']*}.htm?dpt={*$cf_dpt*}" class="edit">修改</a></td>
					    <td width="6%" align="center"><a href="{*$cf_self_path*}-act_del_id_{*$item['goods_id']*}.htm" class="del" onclick="return confirm('你确定要删除吗?')">删除</a></td>
                      </tr>
				{*/foreach*}
					<tr class="tft">
					    <td colspan="6" style="padding:0;">
						<table width="100%" border="0">
						    <tr>
							<td width="5%" align="center" style="border:0;padding:0;">&nbsp;</td>
							<td width="9%" align="center" style="border:0;padding:0;">&nbsp;</td>
							<td width="86%" align="center" style="border:0;padding:0;" ><div class="turnPage"><p>{*$page*}</p></div></td>
						    </tr>
						</table>                                </td>
					</tr>
				    </tbody>
				</table>
			    </form>
			</div>
		    </div>
			
			<div class="content_main_bottom">
				<div class="content_main_bottom_left"></div>
				<div class="content_main_bottom_right"></div>
		    </div>			

		    {*/if*}
			</div>
		</td>
    </tr>
</table>
{*include file="template/admin_foot.htm"*}